package Creational_design_pattern.Builder_Pattern;

public class Client {
    public static void main(String[] args) {
        try {
            KFCWaiter waiter = new KFCWaiter();
            MealBuilder mb = (MealBuilder) XMLUtil.getBean();
            waiter.setMb(mb);
            Meal meal = waiter.construct();
            System.out.println(meal.getFood());
            System.out.println(meal.getDrink());

        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
